package 重温_Java并发基础.CompletableFuture案例.并行抓取案例;

import java.util.ArrayList;
import java.util.List;
import java.util.function.Supplier;

/**
 * @author idea
 * @data 2020/2/22
 */
public class TestSupplier {

    private int age;

    TestSupplier(){
        System.out.println(age);
    }

    public static void main(String[] args) {
        Supplier<TestSupplier> sup=TestSupplier::new;
        List<TestSupplier> testSupplierDTOList=new ArrayList<>();
        for(int i=0;i<10;i++){
            testSupplierDTOList.add(sup.get());
        }
        System.out.println("----------");


    }
}
